CVE-2026-31802
node-tar Symlink Path Traversal via Drive-Relative Linkpath
Description
node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This vulnerability is fixed in 7.5.11.
INFO
Published Date :
March 10, 2026, 7:44 a.m.
Last Modified :
March 18, 2026, 6:13 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | HIGH | [email protected] |
Solution
- Update node-tar to version 7.5.11 or later.
- Ensure tar extraction paths are validated.
Public PoC/Exploit Available at Github
CVE-2026-31802 has a 7 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31802.
| URL | Resource |
|---|---|
| https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad | Vendor Advisory |
| https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256 | Exploit Vendor Advisory |
| https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256 | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31802 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31802
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Demonstrate and analyze the CVE-2026-31802 path traversal vulnerability in npm tar, enabling arbitrary file overwrite via symlink extraction.
cve cve-2026-31802 exploit node-tar path-traversal poc security security-research symlink tar vulnerability
JavaScript
PoC and write-up for CVE-2026-31802, a symlink path traversal vulnerability in npm tar enabling arbitrary file overwrite outside the extraction directory.
cve security security-research cve-2026-31802 exploit node-tar path-traversal poc symlink tar vulnerability
JavaScript
Automated multi-repo security remediation bot that detects GitHub Dependabot alerts, creates tested fix PRs, validates results, and sends merge-ready email notifications.
JavaScript TypeScript Shell
None
Dockerfile
CVE POC repo 자동 수집기
Python
All Public RunWhen Helm Charts - Managed by terraform
Shell Dockerfile Go Template
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31802 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31802 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 18, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Added CPE Configuration OR *cpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:* versions up to (excluding) 7.5.11 Added Reference Type GitHub, Inc.: https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256 Types: Exploit, Vendor Advisory Added Reference Type CISA-ADP: https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256 Types: Exploit, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Mar. 10, 2026
Action Type Old Value New Value Added Reference https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256 -
New CVE Received by [email protected]
Mar. 10, 2026
Action Type Old Value New Value Added Description node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This vulnerability is fixed in 7.5.11. Added CVSS V4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-22 Added Reference https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad Added Reference https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256